/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simplemessenger;

import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author Bill
 */
public class SimpleMessenger extends JFrame{

    boolean isClient;
    public SimpleMessenger() {
        if(JOptionPane.showConfirmDialog(this, "Would you like to be a server?") == JOptionPane.NO_OPTION){//determines whether to configure the program as a server or client...
            isClient = true;
            ConnectionManager cm = new ConnectionManager(isClient);
        } else {
            isClient = false;
            ConnectionManager cm = new ConnectionManager(isClient);
        }
    }
    public static void main(String[] args) throws IOException {
        SimpleMessenger sm = new SimpleMessenger();//make a copy of main class
    }
}
